package cdu.notFound.Dao;

import cdu.notFound.model.Goods;
import cdu.notFound.utils.IntHolder;

import java.util.List;

public interface GoodsDao {
    Goods findById(int id);
    boolean doCreate(Goods good);
    int getMaxId() ;
    List<Goods> findAll(IntHolder num, int limitMin, int perPage) ;
    List<Goods> findAllNotAuditing() ;
    boolean doUpdate(Goods good);
    List<Goods> findByCeta(int cetaId,IntHolder num,int limitMin,int perPage);
    List<Goods> findByKey(String key);
    List<Goods> findByUserId(int userId);

}
